package cn.edu.nju.software.zp13.core.nodeGenerator;

import org.w3c.dom.Document;
import org.w3c.dom.Node;

import cn.edu.nju.software.zp13.core.nodeDescriptor.NodeDescriptor;
import cn.edu.nju.software.zp13.core.xmlNodeEntity.XmlNodeEntity;

public class ComplexNodeGenerator extends NodeGenerator {

	public ComplexNodeGenerator(Document dom) {
		super(dom);
	}

	@Override
	public void updateDom(Node node, NodeDescriptor descriptor) {
		XmlNodeEntity entity = getEntityContent(descriptor);
		node.appendChild(entity.toXmlNode(dom));
	}
}
